package edu.gatech.cc.hwa.server.development;

import edu.gatech.cc.hwa.server.database.Database;
import edu.gatech.cc.hwa.server.database.exceptions.DatabaseException;
import edu.gatech.cc.hwa.server.security.encryption.KeyConverter;
import edu.gatech.cc.hwa.server.security.exceptions.HwaSecurityException;

public class UserCreator {

	public static void main(String[] args) throws HwaSecurityException {
		String username = "testuser";
		String password = "testpass";
		String hashedPassword = new String(KeyConverter.createFullLengthPasswordHash(password));
		try {
			Database.createUser(username, hashedPassword);
			System.out.println("User creation done.");
		} catch (DatabaseException e) {
			e.printStackTrace();
		}
	}
}
